<div id="common">
	<div class="col-sm-12">
	<div class="callout callout-info" th:utext="${temp_info}">
  	</div>
  		<input type="hidden"  th:field="*{id}" />
  		<input type="hidden"  th:field="*{company.id}" />
  		<input type="hidden"  th:field="*{area}" />
  		<input type="hidden"  th:field="*{contSmallClass.id}" />
  		<input type="hidden"  th:field="*{ycfq}" />
  		<input type="hidden"  th:field="*{isHjb}" />
  		<input type="hidden"  th:field="*{hasFjtk}" />
  	</div>
</div>
<!-- 联系人 S  -->
<div id="lxr">
	<div class="col-sm-6">
	<div class="panel panel-default">
  	<div class="panel-body">
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">甲方(委托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{jfWtr}" data-rule-required="true"/>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">通信地址</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{jfTxdz}" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">联系人</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{jfLxr}" data-rule-required="true" />
		</div>
		<label for="sex" class="col-sm-2 control-label">网    址</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{jfWz}" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">电话号码</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{jfDhhm}" />
		</div>
		<label for="sex" class="col-sm-2 control-label">移动电话</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{jfYddh}" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">电子邮件</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{jfDzyj}" />
		</div>
	</div>
	</div></div></div>
	
	<div class="col-sm-6">
	<div class="panel panel-default">
  	<div class="panel-body">
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">乙方(受托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{yfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">联系地址</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{yfTxdz}" data-rule-required="true" />
		</div>
	</div>
		<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">联系人</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{yfLxr}" />
		</div>
		<label for="sex" class="col-sm-2 control-label">网    址</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{yfWz}" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">电话号码</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{yfDhhm}" data-rule-required="true" />
		</div>
		<label for="sex" class="col-sm-2 control-label">传真号码</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{yfCzhm}" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">电子邮件</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{yfDzyj}" />
		</div>
	</div>
	</div></div></div>
</div>

<!-- 附加条款 S -->
<div class="form-group" th:if="*{hasFjtk}" id="fjtk">
	<label for="sex" class="col-sm-2 control-label">增加附加条款</label>
	<div class="col-sm-4">
		<textarea class="form-control" rows="4" th:field="*{fjtkAdd}" ></textarea>
	</div>
	<label for="sex" class="col-sm-1 control-label">删除附加条款</label>
	<div class="col-sm-5">
		<textarea class="form-control" rows="4" th:field="*{fjtkDel}"></textarea>
	</div>
</div>
	
<!-- 加计扣除 S  -->
<div id="ad_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<div class="col-sm-7 col-sm-offset-1 form-inline">
			<input type="text" class="form-control" th:field="*{data.adYear}" />
			<label class="control-label">年研发费用总计</label>
			<input type="text" class="form-control" th:field="*{data.adSum}" data-rule-required="true" data-rule-digits="true" />
			<label class="control-label">（以万为单位）</label>
		</div>
		<label for="sex" class="col-sm-1 control-label">正常报价</label>
		<div class="col-sm-2">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">加计扣除费用</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label class="col-sm-1 control-label">付款时间</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
		<label class="col-sm-2 control-label">签订合同之日支付费用（元）</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-required="true" data-rule-digits="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-3">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var validate;

$(function(){
	
	validate = $("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 专审 S  -->
<div id="as_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">甲方(委托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{jfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">乙方(受托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{yfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-10">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">甲方委托乙方：</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.zxsj}" data-rule-required="true" />
			<!--  
			<select th:field="*{data.zxsj}" class="form-control">
				<option value="高新专审">高新专审</option>
				<option value="软件企业专审">软件企业专审</option>
				<option value="其他专审">其他专审</option>
			</select>
			-->
			<label class="control-label">专项审计，</label>
			<input type="text" class="form-control" th:field="*{data.adYear}" />
			<label class="control-label">年收入总额是</label>
			<input type="text" class="form-control" th:field="*{data.adSum}" data-rule-required="true" />
			<label class="control-label">（以万为单位）</label>
		</div>
	</div>
	
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">专项审计报告费用</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-required="true" data-rule-digits="true" />
		</div>
		<label class="col-sm-1 control-label">付款时间</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
		<label class="col-sm-2 control-label">签订合同之日支付费用（元）</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-required="true" data-rule-digits="true"  />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-3">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;

$(function(){
	
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 年审 S  -->
<div id="ay_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">甲方(委托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{jfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">乙方(受托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{yfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-10">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">甲方委托乙方：</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.ayYear}" />
			<label class="control-label">年的年度审计报告，</label>
			<input type="text" class="form-control" th:field="*{data.adYear}" />
			<label class="control-label">年的年度资产总计是</label>
			<input type="text" class="form-control" th:field="*{data.adSum}" data-rule-required="true" />
			<label class="control-label">（以万为单位）</label>
		</div>
	</div>
	
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">费用总额</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-required="true" data-rule-digits="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-3">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 保密 S  -->
<div id="ca_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>	
	<div class="form-group">
		<div class="col-sm-12 form-inline" style="margin-left: 20px">
			<label class="control-label">乙方对在协助甲方处理</label>
			<input type="text" class="form-control" th:field="*{data.xm}" data-rule-required="true" />
			<label class="control-label">项目（专利）的申请事项上接触的属于甲方的技术秘密、商业秘密。</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 版权 S  -->
<div id="cr_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<table class="table table-bordered contract_table">
	<thead>
		<tr><th colspan="8" style="font-weight: bold;">著作权委托代理项目</th></tr>
		<tr>
            <th style="width: 50px">序号</th>
            <th >委托项目名称</th>
            <th >作品/计算机软件名称</th>
            <th style="width: 60px">件数</th>
            <th style="width: 120px">费用（元）</th>
            <th style="width: 160px">正常报价</th>
            <th >备注</th>
            <th style="width: 60px"><a href="javascript:;" onclick="add_sb_row()">添加</a></th>
		</tr>
	</thead>
	<tbody id="table_rows">
		<tr style="display: none;" id="row_template">
			<th class="no">1</th>
			<td><input type="text" class="form-control" name="wtxmmc"></td>
			<td><input type="text" class="form-control" name="zpmc"></td>
			<td><input type="text" class="form-control" name="js" data-rule-required="true" data-rule-digits="true"></td>
			<td><input type="text" class="form-control" name="fy" onblur="compute_fy()" data-rule-required="true" data-rule-digits="true"></td>
			<td>
				<select name="zcbj" class="form-control">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
				</select>
			</td>
			<td><input type="text" class="form-control" name="memo"></td>
			<td class="center"><a href="javascript:;" onclick="del_sb_row(this)">删除</a></td>
		</tr>
		<tr th:each="sb, iterStat: *{sbItems}">
			<th class="no" th:text="${iterStat.index}"></th>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].wtxmmc'}" th:value="${sb.wtxmmc}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].zpmc'}" th:value="${sb.zpmc}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].js'}" th:value="${sb.js}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].fy'}" th:value="${sb.fy}"></td>
			<td>
				<select th:name="${'sbItems[' + iterStat.index + '].zcbj'}" class="form-control">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}" th:selected="${sb.zcbj == zcbj[0]}"></option>
				</select>
			</td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].memo'}" th:value="${sb.memo}"></td>
			<td class="center"><a href="javascript:;" onclick="del_sb_row(this)">删除</a></td>
		</tr>
	</tbody>
	</table>
	<hr />
	<div class="form-group">
		<label class="col-sm-2 control-label">费用合计</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{fyhj}" readonly="readonly" data-rule-required="true" />
		</div>
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-2 control-label">先期咨询操作费</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0;

function add_sb_row() {
	var clone = $("#row_template").clone();
	clone.find(".no").text($('#table_rows').find('tr').length);
	clone.find('input, select').each(function(){
		$(this).attr("name", 'sbItems[' + num + '].' + $(this).attr("name"));
	});
	num ++;
	clone.appendTo("#table_rows").removeAttr("style").removeAttr('id');
}

function del_sb_row(obj) {
	$(obj).closest("tr").remove();
	$('#table_rows').find('tr').each(function(i){
		$(this).find('.no').text(i);
	});
	compute_fy();
}

//计算费用合计
function compute_fy() {
	var sum = 0;
	$('#table_rows').find('tr').each(function(i){
		var val = parseInt($(this).find("input[name$='.fy']").val());
		sum += isNaN(val) ? 0 : val;
	});
	if(sum == 0) sum = '';
	$("#fyhj").val(sum);
	return sum;
}

$(function(){
	compute_fy();
	num = $('#table_rows').find('tr').length - 1;
	
	validate = $("#contract_form").validate({
		submitHandler:function(form) {
			if($('#table_rows').find('tr').length <= 1) {
				$.dialog.alert("请输入著作权委托代理项目");
			} else {
				form.submit();	
			}
		}
	});
});
</script>
</div>

<!-- 双软 S  -->
<div id="ds_a_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	
	<table class="table table-bordered contract_table">
	<thead>
		<tr><th colspan="8" style="font-weight: bold;">双软项目明细</th></tr>
          <tr>
            <th style="width: 50px">序号</th>
            <th>委托项目名称</th>
            <th>件数</th>
            <th style="width: 180px">代理服务费（单价）</th>
            <th style="width: 180px">正常报价（单价）</th>
            <th style="width: 180px">代理服务费（共计）</th>
            <th style="width: 180px">正常报价（共计）</th>
          </tr>
	</thead>
	<tbody id="table_rows">
		<tr th:each="sb, iterStat: *{sbItems}">
			<th class="no" th:text="${iterStat.index}"></th>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].xmmc'}" th:value="${sb.xmmc}" data-rule-required="true" readonly="readonly"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].xmlb'}" th:value="${sb.xmlb}" data-rule-required="true" data-rule-digits="true" onblur="compute_fy()"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].sbzw'}" th:value="${sb.sbzw}" data-rule-required="true" data-rule-digits="true" onblur="compute_fy()"></td>
			<td>
				<select th:name="${'sbItems[' + iterStat.index + '].sbyw'}" class="form-control">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}" th:selected="${sb.sbyw == zcbj[0]}"></option>
				</select>
			</td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].fy'}" th:value="${sb.fy}" readonly="readonly"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].zcbj'}" th:value="${sb.zcbj}" readonly="readonly"></td>
		</tr>
	</tbody>
	</table>
	<hr />
	<div class="form-group">
		<label class="col-sm-1 control-label">费用合计</label>
		<div class="col-sm-1" style="padding-right: 0px">
			<p class="form-control-static" id="fyhj" style="font-weight: bold; color: red;">元</p>
		</div>
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">尾款支付日</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;

//计算费用合计
function compute_fy() {
	var sum = 0;
	$('#table_rows').find('tr').each(function(i){
		//数量
		var sl = parseInt($(this).find("input[name$='.xmlb']").val());
		if(isNaN(sl)) return;
		//单价
		var dj = parseInt($(this).find("input[name$='.sbzw']").val());
		if(isNaN(dj)) return;
		//正常报价单价
		var zc_dj = parseInt($(this).find("select[name$='.sbyw']").val());
		$(this).find("input[name$='.zcbj']").val(zc_dj * sl);
		var val = sl * dj;
		$(this).find("input[name$='.fy']").val(val);
		sum += isNaN(val) ? 0 : val;
	});
	if(sum == 0) sum = '';
	$("#fyhj").text(sum + '元');
	return sum;
}

$(function(){
	compute_fy();
	
	num = $('#table_rows').find('tr').length - 1;
	
	validate = $("#contract_form").validate({});
});
</script>
</div>

<!-- 双软 S  -->
<div id="ds_b_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">顾问咨询费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true" onblur="compute_fy()" />
		</div>
	</div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">是否操作软件检测</label>
		<div class="col-sm-2">
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="1" data-rule-required="true" onchange="compute_fy()" />是
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="0" data-rule-required="true" onchange="compute_fy()" />否
			</label>
		</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.p1}" data-rule-digits="true" onblur="compute_fy()"  />
		</div>
		<label for="fyhj" class="col-sm-2 control-label">是否操作软件产品登记</label>
		<div class="col-sm-2">
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m2}" value="1" data-rule-required="true" onchange="compute_fy()" />是
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m2}" value="0" data-rule-required="true" onchange="compute_fy()" />否
			</label>
		</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.p2}" data-rule-digits="true" onblur="compute_fy()" />
		</div>
	</div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">是否操作软件企业认定</label>
		<div class="col-sm-2">
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m3}" value="1" data-rule-required="true" onchange="compute_fy()" />是
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m3}" value="0" data-rule-required="true" onchange="compute_fy()" />否
			</label>
		</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.p3}" data-rule-digits="true" onblur="compute_fy()" />
		</div>
		<label for="fyhj" class="col-sm-2 control-label">是否代交后期维护服务费</label>
		<div class="col-sm-2">
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m4}" value="1" data-rule-required="true" onchange="compute_fy()" />是
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m4}" value="0" data-rule-required="true" onchange="compute_fy()" />否
			</label>
		</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.p4}" data-rule-digits="true" onblur="compute_fy()" />
		</div>
	</div>
	<hr />
	<div class="form-group">
		<label class="col-sm-1 control-label">费用合计</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{fyhj}" readonly="readonly" />
		</div>
		<label class="col-sm-1 control-label">正常价格</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{zcjg}" />
		</div>
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">尾款支付日</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;

//计算费用合计
function compute_fy() {
	var sum = parseInt($("#firstPay").val());
	if(isNaN(sum)) sum = 0;
	$("[name^='data.m']:checked").each(function(){
		if($(this).val() == '1') {
			var id = $(this).attr('name').substr(-1);
			var val = parseInt($("#data\\.p" + id).val());
			if(!isNaN(val)) sum += val;
		}
	});
	$("#fyhj").val(sum);
}

$(function(){
	compute_fy();
	
	num = $('#table_rows').find('tr').length - 1;
	
	validate = $("#contract_form").validate({});
});
</script>
</div>

<!-- 高转 S  -->
<div id="ha_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">顾问操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-1 control-label">正常报价</label>
		<div class="col-sm-2">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
		<th:block th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-1 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		</th:block>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 高培 S  -->
<div id="hc_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group" th:if="*{ycfq == 'O'}">
		<label for="fyhj" class="col-sm-2 control-label">顾问操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-4 control-label">后期咨询操作费按培育扶持资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 高企 S  -->
<div id="he_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	
	<div class="form-group" th:if="*{!(ycfq == 'T' && area == 'B')}">
		<label for="fyhj" class="col-sm-2 control-label">顾问操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>	
		<th:block th:if="*{area == 'B'}">
		<label for="fyhj" class="col-sm-4 control-label">后期咨询顾问费按项目立项后拨款资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		</th:block>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 高品 S  -->
<div id="hp_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">顾问操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-2">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
		<th:block th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label" >先期操作费</label>
		<div class="col-sm-2" th:if="*{ycfq == 'T'}">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		</th:block>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 无形资产评估 S  -->
<div id="ia_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-10">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-12 col-sm-offset-1 form-inline">
			<label class="control-label">乙方负责无形资产评估 </label>
			<input type="text" class="form-control" th:field="*{data.p1}" />
			<label class="control-label"> 万元并出具无形资产评估报告。</label>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-12 col-sm-offset-1 form-inline">
			<label class="control-label">乙方负责按无形资产的价值</label>
			<input type="text" class="form-control" th:field="*{data.p2}" />
			<label class="control-label">万元进行增资，最终完成增资到</label>
			<input type="text" class="form-control" th:field="*{data.p3}" />
			<label class="control-label">万元。</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'O'}">
		<label for="fyhj" class="col-sm-2 control-label">顾问操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-2 control-label" >合同签订后，甲方五日内支付费用</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label">前期咨询操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-2 control-label" >后期完成项目支付</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 创新提点 S  -->
<div id="if_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-4 control-label">后期咨询操作费按培育扶持资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 创新基金验收 S  -->
<div id="ic_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-4 control-label">后期咨询操作费按培育扶持资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 贯标 S  -->
<div id="is_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>	
	<div class="form-group">
		<label class="col-sm-1 control-label">服务期限</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="1" data-rule-required="true">一年
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="2" data-rule-required="true">二年
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="3" data-rule-required="true">三年
			</label>
		</div>
		<label class="col-sm-1 control-label">费用合计</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true" />
		</div>
		<label for="sex" class="col-sm-1 control-label">正常报价</label>
		<div class="col-sm-3">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">尾款支付日</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;

$(function(){
	
	validate = $("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();	
		}
	});
});
</script>
</div>

<!-- 加盟合作协议 S  -->
<div id="jc_template">
</div>

<!-- 长期合作协议 S  -->
<div id="lc_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>	
	<div class="form-group">
		<label class="col-sm-1 control-label" style="padding-left: 10px">乙方提供的主要咨询及操作服务内容</label>
		<div class="col-sm-5">
			<textarea class="form-control" th:field="*{data.p1}" rows="8"></textarea>
		</div>
		<label class="col-sm-1 control-label">费用</label>
		<div class="col-sm-5">
			<textarea class="form-control" th:field="*{data.p2}" rows="8"></textarea>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var validate;
$(function(){
	$("#data\\.p1").val('6.\r\n7.');
	$("#data\\.p2").val('1. 商标注册           /件\r\n2. 发明专利申请       /件\r\n3. 实用新型专利申请      /件\r\n4. 软件著作权登记        /件\r\n5. 有关国家出台的扶持项目\r\n6.\r\n7.');
	$("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 拨款类项目 S  -->
<div id="oa_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label class="col-sm-1 control-label">项目名称</label>
		<div class="col-sm-4" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{data.p1}" data-rule-required="true" />
		</div>
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true" />
		</div>
		<label class="col-sm-3 control-label">后期尾款按该项目立项资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-required="true" />
		</div>
		<label for="sex" class="col-sm-1 control-label">正常报价</label>
		<div class="col-sm-3">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var validate;
$(function(){
	$("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 资质认定类项目 S  -->
<div id="oq_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label class="col-sm-1 control-label">项目名称</label>
		<div class="col-sm-4" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{data.p1}" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">费用合计</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-1 control-label">正常报价</label>
		<div class="col-sm-3">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">尾款支付日</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var validate;
$(function(){
	
	$("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 专利交易 S  -->
<div id="pd_template">
</div>


<!-- 民营 S  -->
<div id="pt_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	
	<div class="form-group" th:if="*{ycfq == 'O'}">
		<label for="fyhj" class="col-sm-2 control-label">咨询操作费</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-2 control-label">后期咨询操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var validate;

$(function(){
	validate = $("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 姑苏天使 S  -->
<div id="sa_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-4 control-label">后期咨询操作费按培育扶持资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 商标交易 S  -->
<div id="td_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">甲方(委托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{jfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">乙方(受托人)</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{yfWtr}" data-rule-required="true" />
		</div>
	</div>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-10">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">第“</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.p1}" data-rule-required="true" />
			<label class="control-label">”号“</label>
			<input type="text" class="form-control" th:field="*{data.p2}" data-rule-required="true" />
			<label class="control-label">”商标转让协议书</label>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">商标类别</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.p3}" data-rule-required="true" data-rule-digits="true" />
			<label class="control-label">类，商标的有效期限</label>
			<input type="text" class="form-control" th:field="*{data.p4}" data-rule-required="true" />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">该注册商标代售款总金额</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.m1}" data-rule-required="true" data-rule-digits="true" />
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">自本协议签订之日起</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.p5}" data-rule-digits="true" />
			<label class="control-label">个工作日内甲方向乙方支付人民币</label>
			<input type="text" class="form-control" th:field="*{data.m2}" />
			<label class="control-label">元整</label>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">分期付款: 自本协议签订之日起</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.p6}" data-rule-digits="true" />
			<label class="ontrol-label">个工作日内甲方向乙方支付预付款人民币</label>
			<input type="text" class="form-control" th:field="*{data.m3}" data-rule-digits="true"  />
			<label class="control-label">元整</label>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">甲方在商标售卖后</label>
		<div class="col-sm-10 form-inline">
			<input type="text" class="form-control" th:field="*{data.p7}" data-rule-digits="true"  />
			<label class="control-label">个工作日内将余款人民币</label>
			<input type="text" class="form-control" th:field="*{data.m4}" data-rule-digits="true"  />
			<label class="control-label">元整支付给乙方</label>
		</div>
	</div>
	
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;

$(function(){
	
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 小巨人 S  -->
<div id="tg_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-1 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-3 control-label">后期咨询操作费按项目立项资金总额百分比</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{data.percent}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-1 control-label">正常报价</label>
		<div class="col-sm-3">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 中小 S  -->
<div id="tm_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group" th:if="*{ycfq == 'O'}">
		<label for="fyhj" class="col-sm-2 control-label">顾问操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label for="fyhj" class="col-sm-2 control-label">先期操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="fyhj" class="col-sm-2 control-label">后期咨询操作费</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 商标 S  -->
<div id="tr_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<table class="table table-bordered contract_table">
	<thead>
		<tr><th colspan="10" style="font-weight: bold;">商标委托代理项目</th></tr>
          <tr>
            <th rowspan="2" style="width: 50px">序号</th>
            <th rowspan="2">委托项目名称</th>
            <th rowspan="2" style="width: 80px">类别</th>
            <th colspan="4">商标内容</th>
            <th rowspan="2" style="width: 120px">费用（元）</th>
            <th rowspan="2" style="width: 160px">正常报价（元）</th>
            <th rowspan="2" style="width: 60px"><a href="javascript:;" onclick="add_sb_row()">添加</a></th>
          </tr>
          <tr>
          	<th>中文</th>
            <th>英文或其他文字</th>
            <th>图形</th>
            <th>组合商标</th>
          </tr>
	</thead>
	<tbody id="table_rows">
		<tr style="display: none;" id="row_template">
			<th class="no">1</th>
			<td><input type="text" class="form-control" name="xmmc" data-rule-required="true"></td>
			<td><input type="text" class="form-control" name="xmlb" data-rule-required="true" data-rule-range="[1,45]" data-rule-digits="true"></td>
			<td><input type="text" class="form-control" name="sbzw"></td>
			<td><input type="text" class="form-control" name="sbyw"></td>
			<td><input type="text" class="form-control" name="sbtx"></td>
			<td><input type="text" class="form-control" name="sbzh"></td>
			<td><input type="text" class="form-control" name="fy" onblur="compute_fy()" data-rule-required="true" data-rule-digits="true"></td>
			<td>
				<select name="zcbj" class="form-control">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
				</select>
			</td>
			<td class="center"><a href="javascript:;" onclick="del_sb_row(this)">删除</a></td>
		</tr>
		<tr th:each="sb, iterStat: *{sbItems}">
			<th class="no" th:text="${iterStat.index}"></th>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].xmmc'}" th:value="${sb.xmmc}" data-rule-required="true"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].xmlb'}" th:value="${sb.xmlb}" data-rule-required="true" data-rule-range="[1,45]"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].sbzw'}" th:value="${sb.sbzw}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].sbyw'}" th:value="${sb.sbyw}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].sbtx'}" th:value="${sb.sbtx}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].sbzh'}" th:value="${sb.sbzh}"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].fy'}" th:value="${sb.fy}" onblur="compute_fy()" data-rule-required="true" data-rule-digits="true"></td>
			<td>
				<select th:name="${'sbItems[' + iterStat.index + '].zcbj'}" class="form-control">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}" th:selected="${sb.zcbj == zcbj[0]}"></option>
				</select>
			</td>
			<td class="center"><a href="javascript:;" onclick="del_sb_row(this)">删除</a></td>
		</tr>
	</tbody>
	</table>
	
	<div class="form-group">
		<label class="col-sm-1 control-label">费用合计</label>
		<div class="col-sm-1" style="padding-right: 0px">
			<p class="form-control-static" id="fyhj" style="font-weight: bold; color: red;">元</p>
		</div>
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>

		<th:block th:if="*{isHjb}">
		<label class="col-sm-2 control-label">甲方可要求乙方退款至</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{tkzh}" data-rule-required="true" />
		</div>
		</th:block>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">尾款支付日</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;



function add_sb_row() {
	var clone = $("#row_template").clone();
	clone.find(".no").text($('#table_rows').find('tr').length);
	clone.find('input, select').each(function(){
		$(this).attr("name", 'sbItems[' + num + '].' + $(this).attr("name"));
	});
	num ++;
	clone.appendTo("#table_rows").removeAttr("style").removeAttr('id');
}

function del_sb_row(obj) {
	$(obj).closest("tr").remove();
	$('#table_rows').find('tr').each(function(i){
		$(this).find('.no').text(i);
	});
	compute_fy();
}

//计算费用合计
function compute_fy() {
	var sum = 0;
	$('#table_rows').find('tr').each(function(i){
		var val = parseInt($(this).find("input[name$='.fy']").val());
		sum += isNaN(val) ? 0 : val;
	});
	if(sum == 0) sum = '';
	$("#fyhj").text(sum + '元');
	return sum;
}

$(function(){
	compute_fy();
	
	jQuery.validator.addMethod("sbnr", function(value, element, param) {
		var name = $(element).attr('name');
		var ret = true;
		if($(element).val() == '') return true;
		$("[name^='" + name.split('.')[0] + ".sb']").each(function(){
			if($(this).attr('name') != name && $(this).val() != '') {
				ret = false;
			}
		});
	  return ret;   
	}, "只能填写一项");
	
	num = $('#table_rows').find('tr').length - 1;
	
	validate = $("#contract_form").validate({
		/*
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},*/
		submitHandler:function(form) {
			if($('#table_rows').find('tr').length <= 1) {
				$.dialog.alert("请输入商标委托代理项目");
			} else {
				form.submit();	
			}
		}
	});
});
</script>
</div>

<!-- 软件产品登记（单软）S  -->
<div id="ss_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label class="col-sm-2 control-label">费用合计</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var validate;
$(function(){
	
	$("#contract_form").validate({
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 软件测试 S  -->
<div id="st_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label class="col-sm-2 control-label" style="padding-left: 10px">测试软件产品内容</label>
		<div class="col-sm-10">
			<textarea class="form-control" th:field="*{data.p1}" rows="3" data-rule-required="true"></textarea>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">测试软件名称</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{data.p2}" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">费用总额</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-4">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>

<!-- 创新验收 S  -->
<div id="tc_template">
</div>

<!-- 专利 S  -->
<div id="pr_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	
	<th:block th:if="*{!isHjb}">
		<div class="form-group">
			<label for="data.p1" class="col-sm-1 control-label">申请专利类型</label>
			<div class="col-sm-2">
				<select th:field="*{data.p1}" class="form-control">
			  		<option value="0" th:selected="*{data.p1 == '0'}">发明</option>
			  		<option value="1" th:selected="*{data.p1 == '1'}">实用新型</option>
			  		<option value="2" th:selected="*{data.p1 == '2'}">外观设计</option>
			  		<option value="3" th:selected="*{data.p1 == '3'}">PCT国际专利申请</option>
			  		<option value="4" th:selected="*{data.p1 == '4'}">其他</option>
				</select>
			</div>
			<label for="data.p2" class="col-sm-2 control-label">申请人</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p2}" />
			</div>
			<label for="data.p3" class="col-sm-2 control-label">邮箱</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p3}" />
			</div>
		</div>
		<div class="form-group">
			<label for="data.p4" class="col-sm-1 control-label">申请人地址</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p4}" />
			</div>
			<label for="data.p5" class="col-sm-2 control-label">邮政编码</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p5}" />
			</div>
			<label for="data.p6" class="col-sm-2 control-label">发明人/设计人</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p6}" />
			</div>
		</div>
		<div class="form-group">
			<label for="data.p7" class="col-sm-1 control-label">身份证号</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p7}" />
			</div>
			<label for="data.p8" class="col-sm-1 control-label">联系人姓名</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p8}" />
			</div>
			<label for="data.p9" class="col-sm-1 control-label">电话号码</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p9}" />
			</div>
			<label for="data.p10" class="col-sm-1 control-label">传真</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" th:field="*{data.p10}" />
			</div>
		</div>
	</th:block>
	
	<table class="table table-bordered contract_table">
	<thead>
		<tr><th colspan="9" style="font-weight: bold;">专利委托代理项目</th></tr>
          <tr>
            <th style="width: 50px">序号</th>
            <th>委托项目名称</th>
            <th>件数</th>
            <th style="width: 180px">代理服务费（单价）</th>
            <th style="width: 180px">正常报价（单价）</th>
            <th style="width: 180px">代理服务费（共计）</th>
            <th style="width: 180px">正常报价（共计）</th>
            <th style="width: 60px"><a href="javascript:;" onclick="add_sb_row()">添加</a></th>
          </tr>
	</thead>
	<tbody id="table_rows">
		<tr style="display: none;" id="row_template">
			<th class="no">1</th>
			<td><input type="text" class="form-control" name="xmmc" data-rule-required="true"></td>
			<td><input type="text" class="form-control" name="xmlb" data-rule-required="true" data-rule-digits="true" onblur="compute_fy()"></td>
			<td><input type="text" class="form-control" name="sbzw" data-rule-required="true" data-rule-digits="true" onblur="compute_fy()"></td>
			<td>
				<select name="sbyw" class="form-control" onchange="compute_fy()">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
				</select>
			</td>
			<td><input type="text" class="form-control" name="fy" readonly="readonly"></td>
			<td><input type="text" class="form-control" name="zcbj" readonly="readonly"></td>
			<td class="center"><a href="javascript:;" onclick="del_sb_row(this)">删除</a></td>
		</tr>
		<tr th:each="sb, iterStat: *{sbItems}">
			<th class="no" th:text="${iterStat.index}"></th>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].xmmc'}" th:value="${sb.xmmc}" data-rule-required="true"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].xmlb'}" th:value="${sb.xmlb}" data-rule-required="true" data-rule-digits="true" onblur="compute_fy()"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].sbzw'}" th:value="${sb.sbzw}" data-rule-required="true" data-rule-digits="true" onblur="compute_fy()"></td>
			<td>
				<select th:name="${'sbItems[' + iterStat.index + '].sbyw'}" class="form-control">
			  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}" th:selected="${sb.sbyw == zcbj[0]}"></option>
				</select>
			</td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].fy'}" th:value="${sb.fy}" readonly="readonly"></td>
			<td><input type="text" class="form-control" th:name="${'sbItems[' + iterStat.index + '].zcbj'}" th:value="${sb.zcbj}" readonly="readonly"></td>
			<td class="center"><a href="javascript:;" onclick="del_sb_row(this)">删除</a></td>
		</tr>
	</tbody>
	</table>
	<hr />
	<div class="form-group">
		<div class="col-sm-12 form-inline" style="margin-left: 20px">
			<label class="control-label">是否需要乙方代缴官费</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="1">是
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{data.m1}" value="0">否
			</label>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<label class="control-label">代缴官费服务费</label>
			<input type="text" class="form-control" th:field="*{data.m2}" onblur="compute_fy()"/>
			<label class="control-label">元每件，共计</label>
			<input type="text" class="form-control" th:field="*{data.m3}" onblur="compute_fy()" />
			<label class="control-label">件，共计</label>
			<input type="text" class="form-control" th:field="*{data.m4}" readonly="readonly"/>
			<label class="control-label">元；</label>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">费用合计</label>
		<div class="col-sm-1" style="padding-right: 0px">
			<p class="form-control-static" id="fyhj" style="font-weight: bold; color: red;">元</p>
		</div>
		<label for="sex" class="col-sm-1 control-label">付款方式</label>
		<div class="col-sm-3" style="padding-right: 0px">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
	<div class="form-group" th:if="*{ycfq == 'T'}">
		<label class="col-sm-1 control-label">首付款</label>
		<div class="col-sm-2" style="padding-right: 0px">
			<input type="text" class="form-control" th:field="*{firstPay}" data-rule-required="true" />
		</div>
		<label class="col-sm-1 control-label">尾款支付日</label>
		<div class="col-sm-2">
			<input type="text" class="form-control" th:field="*{lastPayDate}" data-rule-required="true" />
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, select_lxr_table;

function add_sb_row() {
	var clone = $("#row_template").clone();
	clone.find(".no").text($('#table_rows').find('tr').length);
	clone.find('input, select').each(function(){
		$(this).attr("name", 'sbItems[' + num + '].' + $(this).attr("name"));
	});
	num ++;
	clone.appendTo("#table_rows").removeAttr("style").removeAttr('id');
}

function del_sb_row(obj) {
	$(obj).closest("tr").remove();
	$('#table_rows').find('tr').each(function(i){
		$(this).find('.no').text(i);
	});
	compute_fy();
}

//计算费用合计
function compute_fy() {
	var sum = 0;
	$('#table_rows').find('tr').each(function(i){
		//数量
		var sl = parseInt($(this).find("input[name$='.xmlb']").val());
		if(isNaN(sl)) return;
		//单价
		var dj = parseInt($(this).find("input[name$='.sbzw']").val());
		if(isNaN(dj)) return;
		//正常报价单价
		var zc_dj = parseInt($(this).find("select[name$='.sbyw']").val());
		$(this).find("input[name$='.zcbj']").val(zc_dj * sl);
		var val = sl * dj;
		$(this).find("input[name$='.fy']").val(val);
		sum += isNaN(val) ? 0 : val;
	});
	if(sum == 0) sum = '';
	var m2 = parseInt($("#data\\.m2").val());
	var m3 = parseInt($("#data\\.m3").val());
	if(!isNaN(m2) && !isNaN(m3)) {
		var m4 = m2 * m3;
		$("#data\\.m4").val(m4);
		sum += m4;
	}
	$("#fyhj").text(sum + '元');
	return sum;
}

$(function(){
	$("#data\\.m4").val('0');
	compute_fy();
	jQuery.validator.addMethod("sbnr", function(value, element, param) {
		var name = $(element).attr('name');
		var ret = true;
		if($(element).val() == '') return true;
		$("[name^='" + name.split('.')[0] + ".sb']").each(function(){
			if($(this).attr('name') != name && $(this).val() != '') {
				ret = false;
			}
		});
	  return ret;   
	}, "只能填写一项");
	
	num = $('#table_rows').find('tr').length - 1;
	
	validate = $("#contract_form").validate({
		/*
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},*/
		submitHandler:function(form) {
			if($('#table_rows').find('tr').length <= 1) {
				$.dialog.alert("请输入商标委托代理项目");
			} else {
				form.submit();	
			}
		}
	});
});
</script>
</div>

<!-- 专利交易 S  -->
<div id="pd_template">
<form th:action="@{/} + ${form_action}" id="contract_form" th:object="${contract}" class="form-horizontal" style="margin-right: 10px"  method="post">
<div class="box-body">
	<div th:include="::#common"></div>	
	
	<th:block th:include="::#lxr"></th:block>
	<div th:replace="::#fjtk"></div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label" th:text="*{contSmallClass.id == 22 || contSmallClass.id == 45 ? '甲方拟收购专利权' : '甲方拟出售专利权'}"></label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{data.p1}" data-rule-required="true"  />
		</div>
		<label for="sex" class="col-sm-2 control-label">专利编号</label>
		<div class="col-sm-4">
			<input type="text" class="form-control" th:field="*{data.p2}" data-rule-required="true"  />
		</div>
	</div>
	<div class="form-group">
		<label for="sex" class="col-sm-2 control-label">正常报价</label>
		<div class="col-sm-10">
			<select th:field="*{zcjg}" class="form-control">
		  		<option th:each="zcbj : ${zcbjs}" th:value="${zcbj[0]}" th:text="${zcbj[1]}"></option>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label for="fyhj" class="col-sm-2 control-label">服务费用合计</label>
		<div class="col-sm-10">
			<input type="text" class="form-control" th:field="*{fyhj}" data-rule-digits="true" data-rule-required="true"  />
		</div>
	</div>
	<div  class="form-group">
		<label for="sex" class="col-sm-2 control-label">付款方式</label>
		<div class="col-sm-10">
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="1">转账
			</label> 
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="2">支票
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="3">现金
			</label>
			<label class="radio-inline">
				<input type="radio" th:field="*{fkfs}" value="4">支付宝
			</label>
		</div>
	</div>
<div class="box-footer" >
	<div>
		<button type="button" class="btn btn-primary pull-right" style="width: 200px" onclick="$('#contract_form').submit();">下一步</button> 
	</div>
</div>
</form>
<script type="text/javascript">
var num = 0, validate;

$(function(){
	validate = $("#contract_form").validate({
		errorPlacement: function(error, element) { 
			if(element.attr("name") == 'yfLxr') {
				error.appendTo(element.parent().parent());	
			} else {
				error.appendTo(element.parent());	
			}
		},
		submitHandler:function(form) {
			form.submit();
		}
	});
});
</script>
</div>
